
//-------------------------------------[詳細情報表示 start]------------------------------------------------
var OpInf=function(obj){
	this.obj = obj;
	//alert("tmp:"+tmp);

}
var opInf = new OpInf("");

/*
OpInf.prototype.opClick = function(tableCellObj){
	//alert("tmp2:"+tmp);
	//scroll生成
	var frmScroll = new Cscroll("opBoard",tmp); //スクロール対象のid
	frmScroll.init();
	tmp="1";
//	var element = document.getElementById(obj);
//	var childs = elements.childNodes;
//	for(i=1; i<childs.length; i++){
		//alert("sampleの１個目の子のHTMLは「"+childs[i].innerHTML+"」です");
//	}

	this.opCreate(tableCellObj);
}
*/
//----------------------------------------------------------------------
/**
 * 目標パップアップ
 * @param {Object} obj
 */
OpInf.prototype.mhClick = function(tableCellObj){
	var lblField1 = "";
	var lblField2 = "";
	var lblField3 = "";
	var lblField4 = "";
	var lblField5 = "";
	var lblField6 = "";
	var lblField7 = "";
	var lblField8 = "";
	var lblField9 = "";
	var lblField10 = "";
	var lblField11 = "";
	var lblField12 = "";
	var tableRowObj = tableCellObj.parentNode;
	
	try{
		var elements = tableRowObj.cells[0].getElementsByTagName("INPUT");
		if(elements){
			for(var i=0;i<elements.length;i++){
				switch(elements[i].name){
					case "lblField1":
						lblField1 = elements[i].value;
						break;
					case "lblField2":
						lblField2 = elements[i].value;
						break;
					case "lblField3":
						lblField3 = elements[i].value;
						break;
					case "lblField4":
						lblField4 = elements[i].value;
						break;
					case "lblField5":
						lblField5 = elements[i].value;
						break;
					case "lblField6":
						lblField6 = elements[i].value;
						break;
					case "lblField7":
						lblField7 = elements[i].value;
						break;
					case "lblField8":
						lblField8 = elements[i].value;
						break;
					case "lblField9":
						lblField9 = elements[i].value;
						break;
					case "lblField10":
						lblField10 = elements[i].value;
						break;
					case "lblField11":
						lblField11 = elements[i].value;
						break;
					case "lblField12":
						lblField12 = elements[i].value;
						break;
				}
			}
		}
	}catch(e){}

	var html = "";

	//生産数情報
	html += "<div class='scrollInfo'>\n";
	html += "<table width='100%' height='100%'>\n";

	html += "<tr>\n";
	html += "	<td  align='center' style='border:1px solid black; background-color:#FFCC99;'>\n";
	html += "		<table class='opInfo'>\n";


	html += "			<tr>\n";
	html += "				<td class='mhTitle'>発注日</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField1+"</td\n";
	html += "			</tr>\n";
	
	html += "			<tr>\n";
	html += "				<td class='mhTitle'>担当</td>\n";
	html += "				<td class='mhInfo' align='center' align='center'>"+lblField2+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>区分</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField3+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>Y品番</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField4+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>品名</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField5+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>型式</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField6+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>手配連番</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField7+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>L/T</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField8+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>入荷日</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField9+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>完了日</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField10+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>残数</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField11+"</td\n";
	html += "			</tr>\n";

	html += "			<tr>\n";
	html += "				<td class='mhTitle'>発注No</td>\n";
	html += "				<td class='mhInfo' align='center'>"+lblField12+"</td\n";
	html += "			</tr>\n";

	html += "		</table>\n";
	html += "	</td>\n";
	html += "</tr>\n";

	html += "</table>\n";
	html += "</div>\n";


	htmlBtn ="";

	htmlBtn += "<table>\n";
	htmlBtn += "<tr>\n";
	htmlBtn += "	<td>";
	htmlBtn += "		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	htmlBtn += "		<input type='button' class='opBtn' onclick = 'opInf.btnBack();' value='戻る'>";
	htmlBtn += "	</td>";

	htmlBtn += "</tr>\n";
	htmlBtn += "</table>\n";

	document.getElementById("opBoardBtn").innerHTML = htmlBtn;
	document.getElementById("mhBoard").innerHTML = html;

	document.getElementById("opBoardButtom").style.display = "inline";
	document.getElementById("opBoardBtn").style.display = "inline";
	document.getElementById("opBoardTop").style.display = "inline";
	//document.getElementById("opBoardTop").style.color = "inline";
	document.getElementById("mhBoard").style.display = "inline";

	document.getElementById("opBoardInf").style.display = "none";
	document.getElementById("opBoard").style.display = "none";
	
	
}
OpInf.prototype.btnBack = function() {
	document.getElementById("opBoardBtn").style.display = "none";
	document.getElementById("opBoard").style.display = "none";
	document.getElementById("opBoardButtom").style.display = "none";
	document.getElementById("opBoardTop").style.display = "none";
	document.getElementById("opBoardInf").style.display = "none";

	document.getElementById("mhBoard").style.display = "none";

}
//-------------------------------------[詳細情報表示 end]------------------------------------------------